/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jmenu.main;

/**
 *
 * @author Boner
 */
public class Time {

    private int hours;
    private int minutes;

    public Time(int h, int m)
    {
        this.hours = h;
        this.minutes = m;
    }

    public int getHours()
    {
        return this.hours;
    }

    public int getMinutes()
    {
        return this.minutes;
    }

    public String getDigitTime()
    {
	String Shours = (this.hours < 10) ? "0"+ String.valueOf(this.hours):String.valueOf(this.hours);
	String Sminutes = (this.minutes < 10) ? "0"+ String.valueOf(this.minutes):String.valueOf(this.minutes);


        return Shours + ":" + Sminutes;
    }

    
}
